/**
 * @authors tanqichao
 * @date    2017-03-21 13:59:27
 * @module  新建广告主
 */

import React, { Component } from 'react';
import Styles from './indexPage.less';
import { Row, Col, Icon } from 'antd';
import { Link } from 'dva/router';
import classNames from 'classnames';
import { AccessControl } from '../../utils/common';

class NewAdvertiser extends Component {
	render () {
    const permissionList = this.props.permissions;
		return (
			<Row className={Styles.newAdvertiser}>
				<Col span={6}>
					总广告主：
					<a>{this.props.advertTotalCount || 0}</a>
				</Col>
				<Col span={6}>
					使用中：
					<a>{this.props.advertPassCount || 0}</a>
				</Col>
				<Col span={6}>
					未通过：
					<a className={Styles.notPass}>{this.props.advertNotPassCount || 0}</a>
				</Col>
				<Col span={6}>审核中：
					<a>{this.props.advertAuditingCount || 0}</a>
				</Col>
				{/*
					AccessControl(permissionList, 'dsp_advert_modify') ?
						<Link to="/page/createCustomer"><Icon type="plus" />新建广告主</Link> : null
				*/}
			</Row>
		)
	}
};

export default NewAdvertiser;
